package com.itmk.business.product.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itmk.business.product.entity.Product;
import com.itmk.business.product.mapper.ProductMapper;
import com.itmk.business.product.service.ProductService;
import com.itmk.vo.req.ProductReqVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> implements
        ProductService {
    @Autowired
    private ProductMapper productMapper;


    @Override
    public List<Object> getProductListsByProcedure(ProductReqVO vo) {
        this.productMapper.truncateTable();
        return this.productMapper.getProductListsByProcedure(vo);
    }

    @Override
    public List<Map<String, Object>> getAllProductList() {
        return productMapper.getAllProductList();
    }


}
